#pragma once
#include <ListItem.h>
#include "d3d9.h"

class TabPanel;
class TabItem : public ListItem
{
friend class TabPanel;
	Q_OBJECT
public:
	TabItem(QString myText, int x, int y, int width, int height);
	TabItem();
	void onDeviceReset();
	void draw(LPDIRECT3DDEVICE9 device);
	void addControl(UIControl *control);
	void NeedUpdate(bool val);
	~TabItem();
protected:
private:
	QPointer<UIPanel> contentPanel;
	
};

